<!--{include control/admin/tpl/admin_header}-->
<div class="page_title">
    	<h1>{$_lang['global_config']}</h1>
         <div class="tool">         
            <a href="{BASE_URL}/index.php/admin/config_basic" > {$_lang['website_config']}</a>
            <a href="{BASE_URL}/index.php/admin/config_basic/sys">{$_lang['basic_config']}</a>
			<a href="{BASE_URL}/index.php/admin/config_basic/seo"  class="here">{$_lang['seo_config']}</a>
			<a href="{BASE_URL}/index.php/admin/config_basic/mail">{$_lang['mail_config']}</a>
    	</div>
</div>
<div class="box post">
	<form name="frm_config_basic"  id="frm_config_basic" action="{BASE_URL}/index.php/admin/config_basic/save" method="post" accept-charset="{$_K['charset']}" enctype='multipart/form-data'>
        <input type="hidden" name="formhash" value="{FORMHASH}">
		<input type="hidden" name="type" value="{$type}">
	    <table width="100%" class="detail" border="0" cellspacing="0" cellpadding="0">
			<tr>
               <th scope="row">
            	{$_lang['is_pseudo_static']}{$_lang['zh_mh']}
                </th>
                <td>
                    <label for="rdo_is_rewrite_1">
                        <input type="radio" id="rdo_is_rewrite_1" name="is_rewrite" {if $config_arr['is_rewrite']==0||!$config_arr['is_rewrite']} checked="checked" {/if} value="0" />{$_lang['close']}
                    </label>
                    <label for="rdo_is_rewrite_2">
                        <input type="radio" id="rdo_is_rewrite_2" name="is_rewrite" {if $config_arr['is_rewrite']==1} checked="checked" {/if} value="1" />{$_lang['open']}
                    </label>
                    <a href ="{BASE_URL}/index.php/admin/config_basic/seo_rule">{$_lang['view_rewrite_rule']}</a>
                </td>
            </tr>
			
			<tr>
               <th scope="row">
            {$_lang['second_domain']}
                </th>
                <td>
                    <label for="rdo_second_domain_1">
                        <input type="radio" id="rdo_second_domain_1" name="second_domain" {if $config_arr['second_domain']==0||!$config_arr['second_domain']} checked="checked" {/if} value="0" />{$_lang['close']}
                    </label>
                    <label for="rdo_second_domain_2">
                        <input type="radio" id="rdo_second_domain_2" name="second_domain" {if $config_arr['second_domain']==1} checked="checked" {/if} value="1" />{$_lang['open']}
                    </label>
					<span id="t_domain" style='display:none;'>
					<input type="text" size="20" name="top_domain" id="top_domain" value="{$config_arr['top_domain']}"
					 class="txt"><b style="color:red">*</b>{$_lang['top_domain_desc']}
              		</span>
					<div>({$_lang['pan_analytic']})</div>
			   </td>
            </tr>
            <tr>
                <th scope="row">
                    {$_lang['website_title']}{$_lang['zh_mh']}
                </th>
                <td>
                    <input type="text" size="50" name="seo_title" value="{$config_arr['seo_title']}" limit="required:true;len:3-100;general:false" msg="{$_lang['website_title_msg']}" msgArea="seo_title_msg" maxlength="100" class="txt"/><b style="color:red">*</b>
                    <span id="seo_title_msg"></span>{$_lang['website_title_notice']}
                </td>
            </tr>
				<tr>
                <th scope="row">
                    {$_lang['meta_keywords']}{$_lang['zh_mh']}
                </th>
                <td>
                    <input type="text" size="50" name="seo_keyword" value="{$config_arr['seo_keyword']}" limit="required:true;len:3-500;general:false" msg="{$_lang['meta_keywords_msg']}" msgArea = "txt_seo_keywords_msg" class="txt"/>
                    <span id="txt_seo_keywords_msg"></span>{$_lang['meta_keywords_notice']}
                </td>
	            </tr>
	            <tr>
                <th scope="row">
                    {$_lang['meta_description']}{$_lang['zh_mh']}
                </th>
                <td>
                    <textarea cols="50" rows="8" name="seo_desc" limit="required:true;len:3-500;general:false" msg="{$_lang['meta_description_msg']}" msgArea = "seo_description_msg" rows="3" class="textarea">{$config_arr['seo_desc']}</textarea>
                    <span id="seo_description_msg"></span>{$_lang['meta_description_notice']}
                </td>
            	</tr>
			 
			<th scope="row">&nbsp;</th>
			<td>
				 
                    <button class="positive pill primary button" type="submit" name='submit' value="{$_lang['submit']}"><span class="check icon"></span>{$_lang['submit']}</button>
                    <button class="pill button" type="button" onclick="history.go(-1);" value="{$_lang['return']}"><span class="uparrow icon"></span>{$_lang['return']}</button>
                
			</td>
                    
            </table>
        </form>
 </div>
 <script type="text/javascript">
    $(function(){
    	$("#rdo_second_domain_2").click(function(){
			$("#t_domain").show();
		})
		if($("#rdo_second_domain_2").is(":checked")){
			$("#t_domain").show();
		}
    	$("#rdo_second_domain_1").click(function(){
			$("#t_domain").hide();
		})
         
    })
</script>
<!--{include control/admin/tpl/admin_footer}-->
